<{import file="index/header_shop.html" title="优惠促销"}>
<style type="text/css"> 
.cbx{ width:500px; float:left; }
.cbx .l{ width:60px; float:left; } 
.cbx .l a.simg{ width:60px; height:60px; line-height:60px; border:1px solid #efefef; padding:1px; float:left;}
.cbx .l a.simg img{ max-height:60px; max-width:60px; }
.cbx .r{ width:350px; float:left; }
.cbx .r .ttl{ width:100%; padding:0 0 0 5px; float:left;}
.cbx .r .ttl a{ text-align:left; font-size:12px; color:#333; padding:0 10px 0 10px; line-height:20px; float:left;  }
.cbx .r .ttl span{font-size:12px;line-height:22px; padding:0 10px 0 20px; color:#999999; text-align:left; float: left;} 
.cbx .r .intro{ width:440px; text-align:left; line-height:18px; padding:6px 0 0 15px; color:#999999; float:left;}

 
input.bfb{ padding:4px; text-align:center; }
input.submit2{ background:#00AB00; color:#fff; padding:5px 15px; float:left; }

.comm_box{ width:100%; float:left;  }
.comm_box span{ width:65px; margin-left:10px; float:left; }
.comm_box span i{ width:50px; padding:3px; border:1px solid #efefef; background:#f2f2f2; text-align:center; float:left; }
.comm_box span input{ width:50px; padding:3px; text-align:center; float:left; }
.comm_box a{ background:#D4D5D7; color:#333; padding:4px 5px 4px;border-radius:2px; float:left; }
</style> 
<div class="tab_name"><span>优惠促销</span></div> 
<div class="filter">
	<a href="?m=goods_act&a=seckill&type=0"<{if $smarty.get.type == '0'||$smarty.get.type == ''}> class="ch"<{/if}>>未开始</a>
	<a href="?m=goods_act&a=seckill&type=1"<{if $smarty.get.type == '1'}> class="ch"<{/if}>>优惠中</a>
	<a href="?m=goods_act&a=seckill&type=2"<{if $smarty.get.type == '2'}> class="ch"<{/if}>>结束优惠</a> 
</div>
<div class="actbtn">
	<a href="?m=goods_act&a=seckill_edit" class="add">添加促销</a>
</div>
<div class="lbox">
	<table width="100%" class="ltable">
		<thead>
			<tr>  
				<th>商品名</th>
				<th width="70">状态</th>
				<th width="130">开始/结束</th> 
				<th width="130">操作设置</th> 
			</tr>
		</thead> 
		<tbody>  
	<{if $data.list}>	
		<{foreach item=i from=$data.list}>		 
			<tr> 
				<td style="padding:12px 0 12px 5px;">
				<div class="cbx">
					<div class="l"><a class="simg" href="index.php?m=goods&a=detail&id=<{$i.gid}>"><img src="<{$__IMG__}><{$i.goods.images|img_size:60x60}>"/></a></div>
					<div class="r">
						<div class="ttl"><a href="index.php?m=goods&a=detail&id=<{$i.gid}>" target="_blank"><{$i.goods.title}></a></div> 
						<div class="intro">
							价格：<{$i.goods.price}>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							库存：<{if $i.goods.stock == '0'}>无货<{else}><{$i.goods.stock}><{/if}>
						</div>	
					</div>
				</div>	
				</td>  
				<td><{if $i.status == '1'}>通过<{else}>提交<{/if}></td>
				<td><{$i.start_time}><br><{$i.end_time}></td> 
				<td>
					<a href="?m=goods_act&a=seckill_edit&id=<{$i.id}>" class="edit">编辑</a>
					<a href="?m=goods_act&a=seckill_del&id=<{$i.id}>" class="del">删除</a>
				</td>
			</tr>
		<{/foreach}> 
	<{else}> 
		<tr><td colspan="4" class="btm"><div class="nomsg"><i></i><span>您暂时还没有优惠活动~</span></div></td></tr>
	<{/if}>		
		</tbody>
	</table>
	<{if $data.page}><div class="page"><{$data.page}></div><{/if}>
</div>
<{include file="index/footer.html"}> 